package gw.com.android.ui.chart.manager;

import com.gwtsz.chart.output.bean.KLineBean;

import com.gwtsz.chart.output.utils.GTTIndicatorsModel;
import com.gwtsz.chart.output.utils.GTTKDataModel;
import java.util.ArrayList;

import www.com.library.util.ProductPrecision;

/**
 * Created by spence on 17-3-16.
 */

public interface ChartKViewInterface {

  void setProductPrecision(ProductPrecision precision);

  void refreshData(int uiCode , int zoneType, int nativeKLineType);

  void invalidate();


  /**
   * 加载最新数据
   * @param kLineBean
   */
  void addNewData(KLineBean kLineBean);

  void refreshNewData(KLineBean kLineBean);

  void setDataList(ArrayList<GTTKDataModel> list);

  /**
   * 获取是否显示现价线
   * @return
   */
  boolean getNowPriceState();

  void setViceIndicator(GTTIndicatorsModel gttIndicatorsModel);

  void setVisibility(boolean select);

  void refreshIndicator();

  void setPaintStype();

  void setMainIndicator(GTTIndicatorsModel gttIndicatorsModel);
  /** 刷新小数位 **/
  void refreshDecimalNum(int num);

}
